<div id=menu_principal></div>
<script>

DHTMLSuite.configObj = new DHTMLSuite.config();
DHTMLSuite.configObj.init();
DHTMLSuite.configObj.setImagePath('/images/menu_for_applications/');
DHTMLSuite.configObj.setCssPath('/stylesheets/menu_for_applications/')

var menuModel = new DHTMLSuite.menuModel();
DHTMLSuite.commonObj.setCssCacheStatus(false);


<% @ca_menu_itens_filtrados.each do |ca_menu_item| 
   #pp ca_menu_item
%>
  menuModel.addItem(<%=ca_menu_item.id%>,'<%=ca_menu_item.nome%>','','<%=ca_menu_item.link%>',<%= ca_menu_item.parent_id ? ca_menu_item.parent_id.to_s : 'false' %>,'texto alternativo....','');
<% end %>


menuModel.init();

var menuBar = new DHTMLSuite.menuBar();
menuBar.addMenuItems(menuModel);
menuBar.setTarget('menu_principal');

menuBar.init();
</script>